package com.heima.article.feign;

import com.heima.article.dto.LikesBehaviorDto;
import com.heima.article.dto.UnLikesBehaviorDto;
import com.heima.article.entity.ApUnlikesBehavior;
import com.heima.common.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-behavior")
public interface BehaviorFegin {


    //    文章喜欢记录
    @PostMapping("api/v1/likes_behavior/getLikes")
    public ResponseResult getLikes(@RequestBody LikesBehaviorDto dto);


//    不喜欢记录表
    @PostMapping("/api/v1/unlikes_behavior/getUnlikes")
    public ResponseResult<ApUnlikesBehavior> getUnlikes(@RequestBody UnLikesBehaviorDto dto);
}
